package com.dream.fly.juststartservicefeign.rpc;

import com.dream.fly.juststartservicefeign.hystrix.ServiceHiRpcServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by xsh10810
 * Time 2018/4/28 14:30
 */
@FeignClient(value = "just-start-eureka-client",fallback = ServiceHiRpcServiceHystrix.class)
public interface ServiceHiRpcService {

	@RequestMapping(value = "/hi",method = RequestMethod.GET)
	String sayHiFromClientOne(@RequestParam(value = "name") String name);
}
